import 'package:fluro/fluro.dart';
import 'package:flutter/material.dart';
import 'package:flutter_app/provider/initProvider.dart';
import 'package:provider/provider.dart';


import 'config/route_conf.dart';
void main(){
  runApp(
    MultiProvider(
      providers: InitProvider.listProviders,
      child: MyApp(),
    ),
  );
}
class MyApp extends StatelessWidget {
  Router router;
  MyApp() {
    router = Router();

    Routes.configureRoutes(router);
  }
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {

    return MaterialApp(
      title: '如梦当醒',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      onGenerateRoute: router.generator,
    );
  }
}

